<include file="Public:pagerForm"/>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__CONTROLLER__/drawIndex" method="post">
	<div class="searchBar">		
            <table class="searchContent">
                <tr>
                    <td>
                        用户名：<input type="text" name="user"  value="<{$Think.post.user}>"/>
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
	</div>
    </form>
</div>
<div class="pageContent">
    <eq name='roleSign' value='1'>
        <div class="panelBar">
            <ul class="toolBar"> 
                <!--
                <eq name='roleSign' value='1'>
                <li><a class="edit" href="__CONTROLLER__/show/id/{l_id}/sign/<?php echo code('2',1);?>/db/<?php echo code('DrawNum',1);?>/roleSign/<?php echo code("$roleSign",1);?>" target="dialog" mask="true" warn="请选择一条信息" width='400' height='200'><span>修改抽奖次数</span></a></li>
                </eq>
                -->
                <li class="line">line</li>
            </ul>
        </div>
        <table class="table" width="60%" layoutH="138">
    <else/>
        <table class="table" width="40%" layoutH="110">
    </eq>
        <thead>
            <tr>
                <eq name='roleSign' value='1'>
                    <th width="22">
                        <input type="checkbox" group="id[]" class="checkboxCtrl">
                    </th>
                </eq>
                <th width="30"  align="center">序号</th>
                <th width="100" align="center">用户</th>
                <th width="150" orderField='add_time' <if condition="$_REQUEST['_order'] eq 'add_time'">class="<{$_REQUEST._sort}>"</if> align="center" >资格获取时间</th>
                <th width="100" align="center">来源</th>
                <th width="100" align="center">开奖号码</th>
            </tr>
        </thead>
        <tbody>
            <foreach name='list' item="list">
                <tr target="l_id" rel="<{$list.id}>">
                    <eq name='roleSign' value='1'>
                        <td>
                            <input name="id[]" value="<{$list.id}>" type="checkbox">
                        </td>
                    </eq>
                    <td><{$key+1}></td>
                    <td><{$list.user_id|getUsername}></td>
                    <td><{$list.add_time}></td>
                    <td>
                        <eq name="list['from_type']" value='1'>
                            <div style="color: green">调查</div>
                        <else/>
                            <div style="color: blue">点赞</div>
                        </eq>
                    </td>
                    <td><{$list.draw_num}></td>
                </tr>
            </foreach>
        </tbody>        
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<{$totalCount}>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<{$totalCount}>" numPerPage="<{$numPerPage}>" pageNumShown="6"  currentPage="<{$currentPage}>"></div>
    </div>
</div><style type="text/css" media="screen">
    .imgs div{height:100px!important;}
</style>
